public class Student {
    private String name="Maybe";
    private int age=18;
    public Student(){
        System.out.println("student()");
    }

    private Student(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("student(两个参数)");
    }
    private void eat(){
        System.out.println("我吃饭");
    }
    private void function(String str){
        System.out.println(str);

    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
